package com.example.demo.business.feign;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.example.demo.business.model.Dog;

@FeignClient("member")
public interface MemberFeign {

    @GetMapping("/member/member/test")
    String test();

    @GetMapping("/member/member/getById")
    String getById(Integer id);

    @GetMapping("/member/member/{type}/{id}")
    List<Dog> list(@PathVariable String type, @PathVariable Integer id);

    @PostMapping("/member/member/save")
    void save(@RequestBody Dog dog);

    @PostMapping("/member/member/saveBatch")
    void saveBatch(@RequestBody List<Dog> list);

}
